package com.starry.push.netty.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author WuChao
 * @version 1.0
 * @date 2020/11/9 9:51
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SendAppMsg<T> implements Serializable {
    private Integer operate;
    private T body;

    public SendAppMsg success(T t, Integer operate) {
    return   SendAppMsg.builder().operate(operate)
                .body(t)
                .build();
    }

}
